import http from '@/services/http';

export function getFilterList() {
  return http.get<Requestor.Response<Requestor.FilterResponse[]>>('/api/admin/Order/filter/list');
}
export function getList<T>(params: OrderListManagementApi.ListParams) {
  return http.post<Requestor.ListResponse<T>>('/api/admin/Order/list', {
    data: params,
  });
}
export function getInfo<T>(params: OrderListManagementApi.InfoParams) {
  return http.get<Requestor.Response<T>>('/api/admin/Order/info', {
    params,
  });
}
export function remove(params: OrderListManagementApi.DeleteParams) {
  return http.post<Requestor.TeamplateResponse>('/api/admin/Order/delete', {
    data: params,
  });
}
export function updateDelivery(params: OrderListManagementApi.DeliveryParams) {
  return http.post<Requestor.TeamplateResponse>('/api/admin/Order/update/0rder/delivery', {
    data: params,
  });
}
